Skip to content

fix(v22): baseline P0 no corpus oficial com tiktoken - #19

Merged
gaabdotdev merged 5 commits into
release/v2.1-freeze-preparationfrom
cursor/v22-gap-p0-1-baseline-8ae3
Oct 23, 2026
Merged

gaabdotdev merged 5 commits into
release/v2.1-freeze-preparationfrom
cursor/v22-gap-p0-1-baseline-8ae3

Conversation

@gaabdotdev

@gaabdotdev gaabdotdev commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

V22-GAP-P0-1b na mesma branch. A corrida sintética (proxy de espaços, 5–631 tokens) não é a baseline.

  • Tokenizer obrigatório: tiktoken:cl100k_base (docs/v22/baseline/requirements.txt, venv no CI). Se o import falhar, a medição aborta.
  • Corpus: monorepo. B0 lê hits de rg até 45 paths. V2.2 é o pickup/handoff real com retrieval de wiki de projeto e de paths, budget do scorer v22-anchor-scorer-1.0.0 (bloco de retrieval ≤ 22000 tokens). Sem rg, ou sem o ficheiro results.ts no probe, a medição falha.
  • Qualidade = fração de âncoras no contexto, restrições, conflito sinalizado e retomada. Economia de input_tokens só conta quando a qualidade V2.2 ≥ B0 (GOALS-OFFICIAL 5.3).
  • Dispersão 0 de entrada e de releitura é a esperada (zero_expected_deterministic). latency_ms é tempo de parede do retrieval, estado LIMITED. Saída, cache, custo, híbrido Ollama e redução generativa: NOT_MEASURED. Compactação: UNAVAILABLE.

Classe V2.2: PROJECT_WIKI_PICKUP_BUDGET. Não é OFFICIAL_WIKI_GROUND (sem Ollama / wiki Karpathy).

Medição

n=3. Tokenizer tiktoken:cl100k_base. tree_sha da corrida gravada: bc6871ef76f21f226a517595a3aa6a4597698777. O commit 84a5bdb só acrescenta a falha fechada do rg e o install no CI; não regrava o JSON. Relatório: docs/v22/baseline/raw/p0-baseline-report.json.

Tarefa input B0 retrieval V2.2 input V2.2 qualidade B0 → V2.2 economia
curta 136381 21293 21921 1 → 1 PASS
projeto grande 79981 21342 22011 0 → 1 PASS
retomada 22559 21418 22059 1 → 1 PASS
delegada 86120 21344 21996 0 → 1 PASS
fontes conflitantes 47558 21463 22144 0.67 → 1 PASS
restrições sob compactação/handoff 48295 21306 22037 0.67 → 1 PASS

No B0, projeto grande e delegada não trazem a âncora nos primeiros 45 paths ordenados; fontes conflitantes não aplicam a cerca; a restrição de evidência do handoff não está na leitura ampla. O V2.2 passa essas checagens e o bloco de retrieval fica ≤ 22000. Dispersão de input_tokens: 0. Latência de retrieval: medida, estado LIMITED (cerca de 0,2–0,3 s no B0 e 1,3–1,6 s no V2.2). output_tokens, cache, cost, model_latency_ms, híbrido Ollama: NOT_MEASURED. compaction_tokens: UNAVAILABLE.

Test plan

  • npx vitest run tests/unit/v22-p0-baseline.test.ts
  • npm test — 326 testes, 69 ficheiros
  • npm run test:bench — 18 testes
  • pytest do agent-setup — 11 testes
  • docs/architecture/v2.2/scripts/validate-v22-artifacts.sh — VERDICT PASS
  • CI push em 84a5bdb — run 39883897400 success
  • CI do pull request no mesmo SHA — run 39883902176 success
Open in Web Open in Cursor 

cursoragent and others added 3 commits October 23, 2026 00:50
Version the Gaab brief as docs/v22/GOALS-OFFICIAL.md with the internal ID
map, and measure B0 against V2.2 on the six frozen tasks using the
deterministic provider. Generative output, vendor cache, and cost stay
NOT_MEASURED. Compaction stays UNAVAILABLE.

Co-authored-by: Gaab <GaabDevWeb@users.noreply.github.com>
N=3 on the local provider. Output, vendor cache, and cost stay
NOT_MEASURED. Compaction stays UNAVAILABLE. Tokenizer label is the one
this run resolved, not a forced tiktoken count.

Co-authored-by: Gaab <GaabDevWeb@users.noreply.github.com>
The synthetic run counted a whitespace proxy over a few hundred tokens. This measurement fails if tiktoken is missing, packs the real B0 rg read and the V2.2 pickup under the canonical 22000-token budget, and counts input savings only when V2.2 quality stays at or above B0.

Co-authored-by: Gaab <GaabDevWeb@users.noreply.github.com>
@cursor cursor Bot changed the title feat(v22): metas oficiais e baseline P0 B0 vs V2.2 fix(v22): baseline P0 no corpus oficial com tiktoken Oct 23, 2026
cursoragent and others added 2 commits October 23, 2026 01:21
Tiktoken counts on the monorepo. B0 is the broad rg pack. V2.2 is the pickup under the 22000-token retrieval budget. Input savings are counted only where V2.2 quality stays at or above B0. tree_sha is the harness commit this run measured.

Co-authored-by: Gaab <GaabDevWeb@users.noreply.github.com>
An empty rg result was published as zero input tokens. The measurement now requires rg and a hit on results.ts, and CI installs ripgrep when the runner does not already have it.

Co-authored-by: Gaab <GaabDevWeb@users.noreply.github.com>
@gaabdotdev
gaabdotdev merged commit f611780 into release/v2.1-freeze-preparation Oct 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants